package com.concurrency.example.aqs.test;

import com.concurrency.example.aqs.test.Computable;

/**
 * 操作
 * @Auther: xuwei
 * @Date: 2018/11/30 11:14
 */
public class ExpensiveFunction implements Computable<String, Integer> {
    @Override
    public Integer compute(String s) throws InterruptedException {
        /* 模拟耗时操作 */
        Thread.sleep(200);

        return new Integer(s) * 10;
    }
}
